package com.yjx.config;

import com.yjx.service.CacheService;
import com.yjx.service.OperateTokenService;
import com.yjx.service.UserTokenService;
import com.yjx.service.impl.CacheServiceImpl;
import com.yjx.service.impl.OperateTokenServiceImpl;
import com.yjx.service.impl.UserTokenServiceImpl;
import org.springframework.context.annotation.Bean;

public class TokenConfig {

    @Bean
    public OperateTokenService operateTokenService(){
        return new OperateTokenServiceImpl();
    }

    @Bean
    public UserTokenService userTokenService(){
        return new UserTokenServiceImpl();
    }
    @Bean
    public CacheService cacheService() {
        return new CacheServiceImpl();
    }
}
